package com.lwbldy.modules.student.service.impl;

import com.lwbldy.modules.student.domain.Region;
import com.lwbldy.modules.student.mapper.RegionDao;
import com.lwbldy.modules.student.service.RegionService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * 地址 service 实现
 * @author lwb
 * @email lwbldy@163.com
 * @date 2022-06-16 17:31:35
 */
@Service("regionService")
public class RegionServiceImpl implements RegionService {

    @Autowired
    RegionDao regionDao;

    @Override
    public int save(Region t) {
        return regionDao.save(t);
    }

    @Override
    public int saveBatch(List<Region> list) {
        return regionDao.saveBatch(list);
    }

    @Override
    public int update(Region t) {
        return regionDao.update(t);
    }

    @Override
    public int delete(Object id) {
        return regionDao.delete(id);
    }

    @Override
    public int deleteBatch(Object[] ids) {
        return regionDao.deleteBatch(ids);
    }

    @Override
    public Region queryObject(Object id) {
        return regionDao.queryObject(id);
    }

    @Override
    public List<Region> queryList(Map<String, Object> map) {
        return regionDao.queryList(map);
    }

    @Override
    public int queryTotalByMap(Map<String, Object> map) {
        return regionDao.queryTotalByMap(map);
    }

    @Override
    public int queryTotal() {
        return regionDao.queryTotal();
    }

    @Override
    public List<Region> queryByPid(Object id) {
        return regionDao.queryByPid(id);
    }

}
